package com.powergisol.gis.entity;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * Description:场景菜单
 */
public class TabTree {

    private Integer id;
    //树名称：第一级为场景名称，文件夹名称，最后图层名称
    @NotBlank(message = "名称不能为空")
    @Length(min = 1, max = 100, message = "名称不能超过100长度")
    private String  treeName;
    //是否为图层，=1图层则不能添加下一级
    private Integer isLayer;
    //父级id
    private Integer pId;
    //图层id
    private Integer layerId;
    //场景id
    private Integer sceneId;

    private Integer upSceneId;
    //文件类型；0：其他，1：基图，2：模型，3：官网，4：钻孔，5：标记
    private String fileType;
    //排序
    private Integer treeSort;
    //修改时间
    private Date updateTime;

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public Integer getTreeSort() {
        return treeSort;
    }

    public void setTreeSort(Integer treeSort) {
        this.treeSort = treeSort;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTreeName() {
        return treeName;
    }

    public void setTreeName(String treeName) {
        this.treeName = treeName;
    }

    public Integer getIsLayer() {
        return isLayer;
    }

    public void setIsLayer(Integer isLayer) {
        this.isLayer = isLayer;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public Integer getLayerId() {
        return layerId;
    }

    public void setLayerId(Integer layerId) {
        this.layerId = layerId;
    }

    public Integer getSceneId() {
        return sceneId;
    }

    public void setSceneId(Integer sceneId) {
        this.sceneId = sceneId;
    }

    public Integer getUpSceneId() {
        return upSceneId;
    }

    public void setUpSceneId(Integer upSceneId) {
        this.upSceneId = upSceneId;
    }
}
